<%= render :partial => "admin_menu" %>
<div class="users" >
  <%= flash_info_tag %>
  <p><%= link_to "Add user", :action => :new_user %></p>
  <table class="users_data">
      <tr class="table_menu">
          <th>Login</th>
          <th>email</th>
          <th>Privilege</th>
          <th colspan="2" >Action</th>
      </tr>
  <% @users.each do |user| %>
      <tr>
          <td><%=h user.login %></td>
          <td><%=h user.email %></td>
          <td><%=h user.user_type %></td>
          <td><%= link_to "Edit", {:action => :edit_user, :id => user} %></td>
          <td><%= link_to "Destroy", {:action => :destroy_user, :id => user}, 
              :confirm => "Really delete user " + user.login + "?", :post => true %></td>
      </tr>
  <% end %>
  </table>
</div>